<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>添加用户</title>
<style type="text/css">
    .inputdisable{
        background-color: #fff;
        border: 0px;
    }
</style>
</head>
<body>
<div class="pd-20">
    <form action="" method="post" class="form form-horizontal" id="form1">
    <div id="content_sp">
    <script id="test" type="text/html">
        <div class="row cl">
            <label class="form-label col-3">用户名：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" value="<%=list.user_name%>" placeholder="" id="user_name" name="user_name" datatype="*2-16" nullmsg="用户名不能为空">
            </div>
            <div class="col-4"> </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">头像：</label>
            <div class="formControls col-5"> 
                <img src="<%=list.user_avatar%>" style="max-width: 200px; max-height: 200px;">
                <input type="text" class="input-text" value="<%=list.user_avatar%>" placeholder="" id="user_avatar" name="user_avatar">
                <!-- <img src="<%=list.user_avatar%>" style="max-width: 200px; max-height: 200px;" onclick="_open('修改会员头像','article-imageupload.html?type=image&idname=fujian&api=goods&single=1&inputname=user_avatar','750px','470px',true)"> -->
                <!-- <span class="btn-upload form-group">
                <input class="input-text upload-url" type="text" name="uploadfile-2" id="uploadfile-2" readonly  datatype="*" nullmsg="请添加附件！" style="width:200px">
                <a href="javascript:void();" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                <input type="file" multiple name="file-2" class="input-file">
                </span>  -->
            </div>
            <div class="col-4"> </div>
        </div>
        <!-- <div class="row cl">
            <label class="form-label col-3">用户CODE：</label>
            <div class="formControls col-5">
                <input type="text" disabled="disabled" class="input-text inputdisable" value="<%=list.user_code%>" placeholder="" id="user_code" name="user_code">
            </div>
            <div class="col-4"> </div>
        </div> -->
        <div class="row cl">
            <label class="form-label col-3">登录次数：</label>
            <div class="formControls col-5">
                <input type="text" disabled="disabled" class="input-text inputdisable" value="<%=list.user_loginnum%>" placeholder="" id="user_loginnum" name="user_loginnum">
            </div>
            <div class="col-4"> </div>
        </div>
        <!-- <div class="row cl">
            <label class="form-label col-3">性别：</label>
            <div class="formControls col-5">
                <div class="radio-box">
                    <input type="radio" id="sex-1" name="sex" datatype="*" nullmsg="请选择性别！">
                    <label for="sex-1">男</label>
                </div>
                <div class="radio-box">
                    <input type="radio" id="sex-2" name="sex">
                    <label for="sex-2">女</label>
                </div>
                <div class="radio-box">
                    <input type="radio" id="sex-3" name="sex">
                    <label for="sex-3">保密</label>
                </div>
            </div>
            <div class="col-4"> </div>
        </div> -->
        <div class="row cl">
            <label class="form-label col-3">手机：</label>
            <div class="formControls col-5">
              <input type="text"  class="input-text" value="<%=list.user_mobile%>" placeholder="" id="user_mobile" name="user_mobile">
              <!-- <input type="text"  class="input-text" value="<%=list.user_mobile%>" placeholder="" id="user_mobile" name="user_mobile"  datatype="m" nullmsg="手机不能为空"> -->
            </div>
            <div class="col-4"> </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">地址：</label>
            <div class="formControls col-5">
              <input type="text" disabled="disabled" class="input-text inputdisable" placeholder=""  value="<%=list.province_name%> <%=list.city_name%> <%=list.user_address%>">
            </div>
            <div class="col-4"> </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">邮箱：</label>
            <div class="formControls col-5">
              <input type="text" disabled="disabled" class="input-text inputdisable" placeholder="@" name="user_email" id="user_email" value="<%=list.user_email%>">
            </div>
            <div class="col-4"> </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">添加时间：</label>
            <div class="formControls col-5">
              <input type="text" disabled="disabled" class="input-text inputdisable" placeholder="" name="user_addtime" id="user_addtime" value="<%=list.user_addtime%>">
            </div>
            <div class="col-4"> </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">最后登录时间：</label>
            <div class="formControls col-5">
              <input type="text" disabled="disabled" class="input-text inputdisable" placeholder="" name="user_login_time" id="user_login_time" value="<%=list.user_login_time%>">
            </div>
            <div class="col-4"> </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">登录IP：</label>
            <div class="formControls col-5">
              <input type="text" disabled="disabled" class="input-text inputdisable" placeholder="" name="user_login_ip" id="user_login_ip" value="<%=list.user_login_ip%>">
            </div>
            <div class="col-4"> </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">置换券：</label>
            <div class="formControls col-5">
              <input type="text" disabled="disabled" class="input-text inputdisable" placeholder="" name="user_quan" id="user_quan" value="<%=list.user_quan%>">
            </div>
            <div class="col-4"> </div>
        </div>
<!--         <div class="row cl">
            <label class="form-label col-3">
                <a _href="order-list.html?uid=<%=list.uid%>" class="fun-toindex label label-primary radius" href="javascript:;" data-title="订单列表">
                    查看订单列表
                </a>
               
            </label>
            
        </div> -->
        
        <!-- <div class="row cl">
            <label class="form-label col-3">所在城市：</label>
            <div class="formControls col-5"> <span class="select-box">
                <select class="select" size="1" name="demo1" datatype="*" nullmsg="请选择所在城市！">
                    <option value="" selected>请选择城市</option>
                    <option value="1">北京</option>
                    <option value="2">上海</option>
                    <option value="3">广州</option>
                  </select>
                </span> </div>
            <div class="col-4"> </div>
        </div> -->
        <div class="row cl" style="border-bottom: #ccc 1px dashed;">
            <label class="form-label col-3"><b>其他信息：</b></label>
        </div>

        
        <div class="row cl">
            <label class="form-label col-3">user_from：</label>
            <div class="formControls col-7">
                <input type="text" disabled="disabled" class="input-text inputdisable" placeholder="" name="user_from" id="user_from" value="<%=list.user_from%>">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-3">wx_bind：</label>
            <div class="formControls col-7">
                <input type="text" disabled="disabled" class="input-text inputdisable" placeholder="" name="wx_bind" id="wx_bind" value="<%=list.wx_bind%>">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-3">wx_info：</label>
            <div class="formControls col-7">
                <input type="text" disabled="disabled" class="input-text inputdisable" placeholder="" name="wx_info" id="wx_info" value="<%=list.wx_info%>">    
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">wx_name：</label>
            <div class="formControls col-7">
                <input type="text" disabled="disabled" class="input-text inputdisable" placeholder="" name="wx_name" id="wx_name" value="<%=list.wx_name%>">    
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">wx_openid：</label>
            <div class="formControls col-7">
                <input type="text" class="input-text" placeholder="" name="wx_openid" id="wx_openid" value="<%=list.wx_openid%>">    
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">wx_unionid：</label>
            <div class="formControls col-7">
                <input type="text" class="input-text" placeholder="" name="wx_unionid" id="wx_unionid" value="<%=list.wx_unionid%>">    
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">wx_data：</label>
            <div class="formControls col-7">
                <textarea disabled="disabled" cols="" rows="" class="textarea inputdisable" name="wx_data" id="wx_data"  placeholder="" dragonfly="true"><%=list.wx_data%></textarea> 
            </div>
        </div>
    

              

           
            
        
        <!-- <div class="row cl">
            <label class="form-label col-3">备注：</label>
            <div class="formControls col-5">
              <textarea name="" cols="" rows="" class="textarea"  placeholder="说点什么...最少输入10个字符" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onKeyUp="textarealength(this,100)"></textarea>
              <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
            </div>
            <div class="col-4"> </div>
        </div> -->
        <div class="row cl pr-20" style="position:fixed; bottom:10px; width: 200px; right: 10px; text-align: right; z-index:1000; "> 
                <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
                <button onClick="removeIframe();" class="btn btn-default radius" type="button" style="margin-left:10px;">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>          
        </div>
    </script>
    </div>

    </form>
</div>
</div>
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 

<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="lib/webuploader/0.1.5/webuploader.min.js"></script> 
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.config.js"></script> 
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.all.min.js"> </script> 
<script type="text/javascript" src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script> 
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript" src="js/template-native.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 

<script type="text/javascript" src="lib/daterangepicker/moment.min.js"></script> 
<script type="text/javascript" src="lib/daterangepicker/jquery.daterangepicker.js"></script>
<link rel="stylesheet" href="lib/daterangepicker/daterangepicker.css" /> 

<script type="text/javascript">
var API=API_USER;
var id=getUrlParam('id');//编辑菜单id
$("#form1").attr("action", API);
function removeIframe(){
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
}


$(function(){

    if(id!==null){       
        var eidturl=API+"?id="+id;
        $("#form1").attr("action", eidturl);
        $.getJSON(eidturl,function(data){
            if(!checkStatus(data)) return;//判断登录
            var data={'list':data.datas};
            var html=template('test',data);
            $("#content_sp").html(html);
            // $("input[type=text]").attr("disabled","disabled"); 
            // $("input[type=text]").addClass("inputdisable");
            Validformsubmit("#form1");
        })
    }

    
	
	// $("#form1").Validform({
	// 	tiptype:2,
	// 	callback:function(form){
	// 		form[0].submit();
	// 		var index = parent.layer.getFrameIndex(window.name);
	// 		parent.$('.btn-refresh').click();
	// 		parent.layer.close(index);
	// 	}
	// });



});
</script>
</body>
</html>